import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Member from '../components/Member.vue'
import ShopCar from '../components/ShopCar.vue'
import Search from '../components/Search.vue'
import NewsList from '../components/NewsList.vue'
import NewsDetail from '../components/NewsDetail.vue'
import GoodsList from '../components/GoodsList.vue'
import Cate from '../components/Cate.vue'
import CateMessage from '../components/CateMessage.vue'
import Review from '../components/Review.vue'
import PhotoList from '../components/PhotoList.vue'
import Photoinfo from '../components/Photoinfo.vue'
import Comment from '../components/Comment.vue'
import AddShop from '../components/AddShop.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: Home
    },
    {
        path: '/member',
        component: Member
    },
    {
        path: '/shopcar',
        component: ShopCar
    },
    {
        path: '/search',
        component: Search
    },
    {
        path: '/newslist',
        component: NewsList
    },
    {
        path: '/newsDetail',
        component: NewsDetail
    },
    {
      path: '/addShop',
      component: AddShop
    },
    {
        path: '/goodslist',
        component: GoodsList
    },
    {
        path: '/cate',
        component: Cate
    },
    {
        path: '/catelist',
        component: CateMessage
    },
    {
        path: '/catelcomment',
        component: Comment
    },
    {
        path: '/photoinfor',
        component: Review
    },
    {
        path: '/photo/list',
        component: PhotoList
    },
    {
        path: '/photo/info',
        component: Photoinfo
    },
    {
        path: '/comments',
        component: Comment
    }
]
const router = new VueRouter({
    routes
})
export default router